<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ManageWorkCreateRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'manage_id'		=> 'required',
            'type'		=> 'required',
            'content'		=> 'required',
        ];
    }
    
    public function messages(){
    	return [
			'manage_id.required'	=> '请选择流转人',
			'type.required'	=> '请选择工单类型',
			'content.required'	=> '请输入内容',
		];
	}
}
